package com.shao.demo.servicecomb.web;

import org.apache.servicecomb.provider.rest.common.RestSchema;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author zhiqi.shao
 * @Date 2018/6/11 12:49
 */
@RequestMapping(path = "/userService")
@RestSchema(schemaId = "userService")
public class UserServiceImpl {

    @RequestMapping(path = "/sayhi", method = RequestMethod.POST)
    public String sayHi(@RequestParam(name = "name") String name) {
        return "Hello " + name;
    }


}
